<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的预售订单 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
function del(id,cl){
	var ids=new Array(1);
	ids[0]=id;
	$.post(
		"storedelete.jspx",
		{yushouId:ids},
		{cl:cl},
		function(data){
			if(data.success==true){				
				location.reload();
			}
		});
}
</script>
</head>
<body>
[#include "../include/shop_top.html"/]
<div class="w1168">
  [#include "店铺中心_导航.html"/]
     <div id="container" class="user_right">
         <div class="user_title_r">
			<div class="user_title_l">预售订单列表</div>
        </div>
        <div class="clear10"></div>
        <div class="orderlist" style=" font-size:12px; font-family:Arial; color:#4b4b4b;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
                <!-- <td width="40" align="center" bgcolor="#f0f0f0"><input type="checkbox" onclick='Pn.checkbox("ids",this.checked)'/></td> -->
				<td width="100" align="center" bgcolor="#f0f0f0">预约编号</td>
                <td bgcolor="#f0f0f0" align="center">预约商品</td>
                <td bgcolor="#f0f0f0" align="center">预约会员</td>                    
                <td width="100" align="center" bgcolor="#f0f0f0">预约时间</td>
                <td width="100" align="center" bgcolor="#f0f0f0">状态</td>
                <td width="110" align="center" bgcolor="#f0f0f0">操作</td>
              </tr>
             </table>
			[@yushouOrder_page memberId=member.id storeId=store.id yuStatus=yuStatus createTime=createTime count='10' pageNo=pageNo]
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				[#if tag_list?size gt 0]
        			[#list tag_list as yushou]
				 <tr>
					<!-- <td width="40" align="center" bgcolor="#f0f0f0"><input type="checkbox" name="yushouId" value="${yushou.id!}"/></td> -->
					<td width="100" align="center" bgcolor="#f0f0f0">${yushou.id!}</td>
					<td bgcolor="#f0f0f0" align="center">${yushou.productid.name!}</td>      
					<td bgcolor="#f0f0f0" align="center">${yushou.user.username!}</td>          			
					<td width="100" align="center" bgcolor="#f0f0f0">${yushou.createdate!}</td>
					<td width="100" align="center" bgcolor="#f0f0f0">[@s.m "shopYushou.ystatus.${yushou.ystatus!}"/]</td>
					<td width="110" align="center" bgcolor="#f0f0f0">
						<a href="${base}/yushou/yushouOrderView.jspx?cl=tb_20&yushouId=${yushou.id}&pageNo=${pageNo!}" target="_blank">查看</a>|
        				[#if yushou.productid.yushou??&&yushou.productid.yushou==true&&yushou.productid.weikuanenddate??&&yushou.productid.weikuanenddate gt .now&&yushou.ystatus=1]
							<button onclick="alert('这是已支付定金但支付尾款时间尚未结束的预售订单,不能删除')">删除</button>
						[#else]
							<a href="javascript:if(confirm('确认删除?')) del(${yushou.id!},'tb_20')">删除</a>	
						[/#if]
					</td>
				  </tr>
					[/#list]
				[#else]
		        	<div class="zwsj">暂无预售订单记录</div>
		        [/#if]
             </table>
             <div class="pageNumber">[@pagination_style sysPage='3'/]</div>
             <!-- <input type="button" value="批量删除" onclick="optDelete();" class="menu_ok2"/> -->
             [/@yushouOrder_page]
        </div>
     </div>
     <div class="clear20"></div>
 </div>
 [#include "../include/footer_information_bar.html"/]
</body>
</html>